package com.ahaoyou.service;

import com.spring.annotation.Component;
import com.spring.core.BeanPostProcessor;

/**
 * @Description
 * @Author lh
 * @Date 2021-09-30 15:22
 */
@Component
public class ConsumerBeanPostProcessor implements BeanPostProcessor {

    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) {
        System.out.println("aaa");
        return bean;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) {
        System.out.println("bbb");
        return bean;
    }
}